<template>
  <h2>异步控件调用</h2>
  <p>{{ count }}</p>
</template>

<script>
export default {
  name: "AsyncCom",
  setup(){
    let count=1;
    return new Promise((resolve, reject)=>{
        setTimeout(()=>{
          resolve({count})
        },3000)
    })
  }
}
</script>